package jdatatype

import "fmt"

func DifDataType() {
	a := '我'
	fmt.Printf("%T, 0X%x\n", a, a) //int32, 0X6211
	b := "我"
	fmt.Printf("%T,%T,%d\n", b, b[0], len(b)) //string,uint8,3
	s := []rune(b)
	fmt.Printf("%T, %T, %d\n", s, s[0], len(s)) //[]int32, int32, 1
	str := "我I"
	ss := []rune(str)
	fmt.Printf("%T, %T, %d, %d\n", ss[0], ss[1], len(ss), len(str)) //int32, int32, 2, 4

	f1 := -1
	fmt.Print(f1)

	var f2 int32 = -2
	fmt.Print(f2)
	/*
		var (
			f3 uint32 = -3
		)
		fmt.Print(f3)*/
}
